package com.hmdp.service;

import com.hmdp.dto.Result;
import com.hmdp.entity.Follow;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 虎哥
 * @since 2021-12-22
 */
public interface IFollowService extends IService<Follow> {

    /**
     * 进行关注和取关操作
     * @param followId
     * @param isFollowed
     * @return
     */
    Result follow(Long followId, Boolean isFollowed);

    /**
     * 判断是否已关注
     * @param followId
     * @return
     */
    Result queryIsFollowed(Long followId);

    /**
     * 判断共同关注
     *
     * @param followId
     * @return
     */
    Result queryCommonFollow(Long followId);
}
